package com.qys.livesMall.app.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 邀请奖励配置表(SysInviteRewards)表实体类
 *
 * @author makejava
 * @since 2023-07-01 11:34:29
 */
@Data
@TableName("sys_invite_rewards")
public class SysInviteRewards implements Serializable {

    @Schema(description = "配置id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @Schema(description = "最小邀请数")
    private Integer minNum;

    @Schema(description = "最大邀请数")
    private Integer maxNum;

    @Schema(description = "奖励数量")
    private Integer rewards;

    @Schema(description = "创建时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private String createBy;

    @Schema(description = "更新时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "更新人")
    private String updateBy;

    @Schema(description = "邀请用户满足充值金额")
    private BigDecimal rechargeAsk;
}

